<template>
  <div class="page">
    <!--<el-steps :active="1" align-center finish-status="success">
      <el-step title="第1步" description="选择类型"></el-step>
      <el-step title="第2步" description="填写资料"></el-step>
      <el-step title="第3步" description="等待审核"></el-step>
    </el-steps>-->
    <div class="box">
      <div class="title">
        <svg-icon class="icon" icon-class="wxpay" style="color:#04BE02;" />
        <span>开通微信支付商户号</span>
      </div>
      <div class="body">
        <!--<div class="item" @click="toWxpay(1)">
          <div class="subject">
            <span>个人小微商户</span>
            <i class="arrow el-icon-arrow-right" />
          </div>
          <div class="desc">
            <div class="need">需提供 <span>身份证</span><span>个人银行卡</span></div>
            <ul>
              <li>5分钟内完成审批</li>
              <li>正常日交易额度为10万元，若交易异常则自动将为5万元以下/日</li>
              <li>信用卡单日收款不能超过1千，单月收款不能超过1万</li>
              <li>同一个微信仅能开通一个</li>
            </ul>
          </div>
        </div>-->
        <div class="item" @click="toWxpayForm('SUBJECT_TYPE_INDIVIDUAL')">
          <div class="subject">
            <span>个体户</span>
            <i class="arrow el-icon-arrow-right" />
          </div>
          <div class="desc">
            <div class="need">需提供 <span>法人身份证</span><span>营业执照</span><span>个人/对公银行卡</span></div>
            <ul>
              <li>1-2个工作日内完成审批</li>
              <li>收款不限额，支持绑定个人/对公银行卡</li>
            </ul>
          </div>
        </div>
        <div class="item" @click="toWxpayForm('SUBJECT_TYPE_ENTERPRISE')">
          <div class="subject">
            <span>企业</span>
            <i class="arrow el-icon-arrow-right" />
          </div>
          <div class="desc">
            <div class="need">需提供 <span>法人身份证</span><span>营业执照</span><span>对公银行卡</span></div>
            <ul>
              <li>1-2个工作日内完成审批</li>
              <li>收款不限额，仅支持绑定对公账户</li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'H5JinjianWxpay',
  data() {
    return {
      shop_id: 0
    }
  },
  mounted() {
    this.shop_id = this.$route.query.shop_id
  },
  methods: {
    toWxpayForm(type) {
      if (!this.shop_id || !type) {
        this.$message.error('缺少shop_id参数')
        return
      }
      this.$router.replace({
        name: 'H5JinjianWxpayForm',
        query: { shop_id: this.shop_id, subject_type: type }
      })
    }
  }
}
</script>
<style lang="scss" scoped>
  .page {
    width: 100%;
    float: left;
    background-color: #fff;
    padding: 15px;
  }
  .box {
    width: 100%;
    margin: 0 auto 20px auto;
    max-width: 600px;

    .title {
      font-size: 18px;
      font-weight: bold;
      width: 100%;
      text-align: center;
      line-height: 40px;
      color: #666;
      display: flex;
      align-items: center;
      .icon {
        margin-right: 10px;
        font-size: 28px;
      }
    }
    .body {
      width: 100%;
      margin-top: 10px;
      .item {
        padding: 10px 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        background: #fff;
        margin-top: 15px;
        border-radius: 10px;
        border: 1px solid #f0f0f0;

        .subject {
          font-size: 16px;
          font-weight: bold;
          line-height: 36px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          i {
            color: #999;
          }
        }

        .desc {
          color: #666;
          font-size: 12px;
          .need {
            font-size: 13px;
            line-height: 18px;
            span {
              background-color: #e6ffe5;
              color: #11a923;
              padding: 1px 2px;
              display: inline-block;
              margin-left: 5px;
              font-size: 12px;
            }
          }
          ul {
            padding-left: 15px;
            list-style-type: square;
            line-height: 1.5;
            margin: 10px 0 0 0;
            li {
              margin: 8px 0;
            }
          }
        }
      }

    }
  }
</style>
<style>
  .el-message {
    max-width: 96%;
    min-width: 80% !important;
  }
  .el-message-box {
    width: 80%;
  }
</style>

